@extends('layout.front')
@section('title','名家')
@section('head')
        <div class="nav">
            <ul class="nav_body">
                <li><a href="/">首页</a></li>
                <li><a href="master-lecture">名家讲堂</a></li>
                <li><a class="current" href="master">名家风采</a></li>
                <li><a href="video">往期视频</a></li>
            </ul>
        </div>
@endsection
@section('content')
    <div class="main">
        <div class="export">

            <div class="export_list clearfix">
                <?php
                $num=0;
                ?>
                @foreach($oMasters as $v)
                        <?php $num++?>
                    @if($num<3)
                        <div class="export_ship ">
                            <div class="export_ship_img">
                                <a href="/master-show/{{$v->id}}"><img src="{{$v->img}}" /></a>
                            </div>
                            <div class="export_ship_txt">
                                <p>专家: {{$v->name}}</p>
                                <p>职位: {{$v->zhiwu}}</p>
                                <p>科室: {{$v->keshi}}</p>
                                <p>医院: {{$v->hospital}}</p>
                            </div>
                        </div>
                    @else
                            <?php $num=0?>
                        <div class="export_ship mar_0 ">
                            <div class="export_ship_img">
                                <a href="/master-show/{{$v->id}}"><img src="{{$v->img}}" /></a>
                            </div>
                            <div class="export_ship_txt">
                                <p>专家: {{$v->name}}</p>
                                <p>职位: {{$v->zhiwu}}</p>
                                <p>科室: {{$v->keshi}}</p>
                                <p>医院: {{$v->hospital}}</p>
                            </div>
                        </div>
                    @endif
                @endforeach
            </div>
        </div>
        {{$oMasters->links('layout.page')}}
    </div>
@endsection
